Skip to content

feat(errors): move the Errors console onto the shared console-ui pieces - #5549

Open
shepherdjerred wants to merge 3 commits into
mainfrom
errors-console-ui-pieces
Open

shepherdjerred wants to merge 3 commits into
mainfrom
errors-console-ui-pieces

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Why

Errors still carried its own command palette, phone bar and drawer, dialogs, bulk bar, key-value grid, stacktrace boxes, banners, states and tables, duplicating console-ui (Plan A, E1). That kept it apart from the other consoles and left four conformance allowlist entries open.

What

  • ConsoleShell replaces the local sidebar, top bar and drawer (shell-nav.tsx deleted).
  • CommandPaletteCommands replaces the local palette; issue search is its async loader, the theme command runs through its context.
  • Dialog, Banner, State, Checkbox, Fieldset replace er-dialog*, er-banner and er-state.
  • DataTable (selectable, bulkActions -> BulkBar) replaces the .er-table markup, select-all and hand-built bulk bar for issues, projects, releases, overview and breadcrumbs.
  • DescriptionList, CodeBlock, Disclosure, CopyButton, RelativeTime, ExactTime, BackLink replace the metadata grid, stacktrace boxes, copy timers and local age/timestamp formatters. Absolute times are now Pacific per the shared convention.
  • console-ui: CodeBlock gains firstLine so a source excerpt shows real file line numbers.
  • styles.css 742 -> 107 lines; conformance-allowlist.json 4 entries (52 violations) -> []. theme-color metas now equal the token.
  • Net: 1472 insertions, 3040 deletions.

Behaviour notes: Tracker chips still open in a new tab (console-ui Chip gains external, with the external icon); the Project, Sort and release Project filters use the shared Select; the issues table stacks as label/value lines at phone width (DataTable stack); "Copy Markdown" moved from the header into the Stacktrace section; matching issues now list after static commands in the palette.

Demo

Page Before After
issues light
issues dark
issues phone
detail light
detail dark
detail phone
projects light
projects dark
projects phone

Command palette (Ctrl+K, sidebar button, async issue search):

Verification

  • bunx turbo run build typecheck test lint --filter=@shepherdjerred/errors --filter=@shepherdjerred/console-ui: pass (errors 31 tests, console-ui 643)
  • bunx lefthook run pre-commit, bun run jscpd (baseline unchanged at 939), directory-file-counts: pass
  • Rendered against the fixture dev server in a real browser (light, dark, 375px iframe); selection and bulk bar, new-project dialog exercised.
  • client.test.tsx expect( count 88 -> 88; static-markup assertions migrated one for one.
  • Palette exercised in a real browser: sidebar button and Ctrl+K open it, typing TypeError loads a Matching issues section, Enter navigates to the issue, Cycle theme changes the theme. loadIssueSections has a unit test; Chip external has a console-ui test.
  • Extended tier: bun ../../scripts/ci/run-ci-test.ts --tier extended in packages/errors (postgres integration): 1 passed. The workspace-wide bun run verify:extended -- --filter='...[origin/main...HEAD]' was started but stopped while it was still on unrelated JVM/Gradle suites; not completed.
  • Not run: Playwright (Errors has none); live deployment.

🤖 Generated with Claude Code

@shepherdjerred

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@greptile-apps

greptile-apps Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shepherdjerred
shepherdjerred marked this pull request as ready for review December 3, 2026 06:01
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for 0814d1f from the CI review gate.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T06:06:00.132797Z 0814d1f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 0814d1f883

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

shepherdjerred and others added 3 commits December 2, 2026 23:32
Why
Errors carried its own command palette, phone bar and drawer, dialogs, bulk
bar, key-value grid, stacktrace boxes, banners, states and tables, all
duplicating console-ui. That kept it visually and behaviourally apart from the
other consoles and left four conformance allowlist entries open.

What
- ConsoleShell replaces the local sidebar, topbar and drawer (shell-nav.tsx).
- CommandPaletteCommands replaces the local palette; issue search is its async
  loader and the theme command runs through its context.
- Dialog, Banner, State, Checkbox and Fieldset replace er-dialog*, er-banner
  and the er-state paragraphs; the project and Tracker dialogs submit through
  a form id.
- DataTable (selectable, bulkActions) replaces the .er-table markup and the
  hand-built bulk bar and select-all; DescriptionList, CodeBlock (new
  firstLine for source excerpts), Disclosure, CopyButton, RelativeTime and
  ExactTime replace the metadata grid, stacktrace boxes, copy timers and the
  local age and timestamp formatters.
- styles.css drops from 742 to 107 lines; the allowlist is now empty
  (4 entries, 52 violations before).

Verification
- bunx turbo run build typecheck test lint --filter=@shepherdjerred/errors
  --filter=@shepherdjerred/console-ui: pass
- Rendered against the fixture dev server in a real browser, light, dark and
  375px.
- Not run: Playwright (Errors has none), live deployment.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ck the issues table on phones

Why
Review of the console-ui move found four gaps: Tracker links must still open
in a new tab, the filters used native selects, the issues table scrolled
sideways at 375px, and the async issue search had no test.

What
- console-ui Chip gains `external` (target=_blank, rel=noreferrer, external
  icon) with a test and README line.
- Issues Project and Sort filters, and the Releases project filter, use the
  shared Select.
- The issues DataTable uses `stack` so rows become label/value lines on a phone.
- The palette's issue search moves to `loadIssueSections` with a test.

Verification
- bunx turbo run build typecheck test lint --filter=@shepherdjerred/errors
  --filter=@shepherdjerred/console-ui: pass
- bunx lefthook run pre-commit and bun run jscpd: pass
- Palette exercised in a real browser: sidebar button, Ctrl+K, async issue
  results, Enter navigates to the issue, theme command cycles the theme.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Why
knip flagged the dependency as unused after the dialogs and palette moved to console-ui.

What
Remove @base-ui/react from packages/errors and refresh bun.lock.

Verification
- knip: no unused dependencies reported
- check-console-stack: OK

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shepherdjerred
shepherdjerred force-pushed the errors-console-ui-pieces branch from e2455f0 to 719989a Compare December 3, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant